/*
 * @Author: xiaosihan
 * @Date: 2021-06-06 22:51:46
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2021-06-06 23:21:43
 */
export default function bezier(arr: [number, number, number, number], t: number) {
    var ut = 1 - t;
    var a1 = arr[1] * ut + arr[2] * t;
    var result = ((arr[0] * ut + arr[1] * t) * ut + a1 * t) * ut + (a1 * ut + (arr[2] * ut + arr[3] * t) * t) * t;
    return result;
}
